#include<cstring>
#include"person.h"
using namespace std;

Person::Person(const string& ln,const char* fn )
{
    lname = ln;
    strncpy(fname,fn,LIMIT);
}

void Person::Show()const
{
    cout << "The first name is:";
    for ( char ch : fname)
    cout << ch;
    cout << " and this last name is:" << lname << endl;
}

void Person::FormalShow()const
{
    cout << "The last name is:" << lname << " and this first name is: ";
    for ( char ch: fname)
    cout << ch;
    cout << endl;
}